﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace News_Roster
{
    public partial class frmNew : Form
    {

        private string strTitle;
        public string Title
        {
            get { return strTitle; }
            set { strTitle = value; }
        }
        private string strSource;
        public string Source
        {
            get { return strSource; }
            set { strSource = value; }
        }
        private string strFoundBy;
        public string FoundBy
        {
            get { return strFoundBy; }
            set { strFoundBy = value; }
        }
        private string strPostedBy;
        public string PostedBy
        {
            get { return strPostedBy; }
            set { strPostedBy = value; }
        }
        private string strPostType;
        public string PostType
        {
            get { return strPostType; }
            set { strPostType = value; }
        }
        private string strDateFound;
        public string DateFound
        {
            get { return strDateFound; }
            set { strDateFound = value; }
        }
        private string strDatePublished;
        public string DatePublished
        {
            get { return strDatePublished; }
            set { strDatePublished = value; }
        }
        

        public frmNew()
        {
            InitializeComponent();
        }

        private void btnAdd_Click(object sender, EventArgs e)
        {
            Title = txtTitle.Text;
            Source = txtSource.Text;
            FoundBy = txtFoundBy.Text;
            PostedBy = txtPostBy.Text;
            PostType = txtPostType.Text;
            DateFound = dateFound.Text;
            DatePublished = datePub.Text;
        }
    }
}
